import hccmRequestUtil from "@/common/hccm-request-util.js"

module.exports = {
  // login
  loginByMobile: param => hccmRequestUtil.postApi("/osce-api/app/auth/teacherAuth", param, true),

  // 首页
  getRealTimeData: param => hccmRequestUtil.getApi("/osce-api/app/records/getRealTimeData", param, true),

  // 缺考
  missExam: param => hccmRequestUtil.postApi("/osce-api/app/recordsStationStudent/missExam", param, true),

  // 就绪
  readyExam: param => hccmRequestUtil.postApi("/osce-api/app/recordsStationStudent/readyExam", param, true),

  // 老师的考试状态
  recordsStationTeacherList: param => hccmRequestUtil.getApi("/osce-api/app/recordsStationTeacher/list", param, true),
  
  // 更新老师的签名
  recordsStationTeacherSaveOrUpdate: param => hccmRequestUtil.postApi("/osce-api/app/recordsStationTeacher/saveOrUpdate", param, true),

  // 每一个考站的学生列表
  recordsStationStudentList: param => hccmRequestUtil.getApi("/osce-api/app/recordsStationStudent/list", param, true),

  // 查询考试内容 examinationId
  examinationDetail: param => hccmRequestUtil.getApi("/osce-api/app/examination/getDetail", param, true),

  // 查询考试内容 保存考试
  submitExamination: param => hccmRequestUtil.postApi("/osce-api/app/studentExaminationDetail/submitExamination", param, true),

  // 上传base64
  uploadBase64FileBody: param => hccmRequestUtil.postApi("/osce-api/tool/upload/uploadBase64FileBody", param, true),

  // 上传base64 放在对象里面
  uploadBase64FileBodyKey: param => hccmRequestUtil.postApi("/osce-api/tool/upload/uploadBase64FileBodyKey", param, true),

  // 开始考试
  submitStart: param => hccmRequestUtil.postApi("/osce-api/app/records/submitStart", param, true),

  // 获取考试id
  stationExaminationList: param => hccmRequestUtil.getApi("/osce-api/app/stationExamination/list", param, true),

  // 更新考生选择的考题id
  // params "id":"", // nowStudent对象中的id
  // params "examinationId":"" //考题id
  recordsStationStudentSaveOrUpdate: param => hccmRequestUtil.postApi("/osce-api/app/recordsStationStudent/saveOrUpdate", param, true),

  // 获取考试详情
  // params "teacherId":"", // 老师id
  // params "recordsStudentId":"" //考题id
  getStudentExamDetail: param => hccmRequestUtil.getApi("/osce-api/app/studentExaminationDetail/getStudentExamDetail", param, true),

  // 提交申请修改考试成绩
  // params "id":"", // 
  submitPermission: param => hccmRequestUtil.postApi("/osce-api/app/studentExaminationDetail/submitPermission", param, true),

  // 提交申请修改考试成绩
  recordsstudentexamination: param => hccmRequestUtil.getApi("/osce-api/app/studentExaminationDetail/list", param, true),

  // 提交申请修改考试成绩-----通过
  recordsstudentexaminationPermission: param => hccmRequestUtil.postApi("/osce-api/app/studentExaminationDetail/permission", param, true),

  // 历史考试
  examResultPageDate: param => hccmRequestUtil.getApi("/osce-api/app/records/examResultPageDate", param, true),

  // 考试时间段 
  recordsDateList: param => hccmRequestUtil.getApi("/osce-api/app/recordsDate/list", param, true),

  // 历史修改记录
  recordsstudentexaminationpermission: param => hccmRequestUtil.getApi("/osce-api/app/recordsstudentexaminationpermission/list", param, true),

  // 历史修改记录
  recordsstudentexaminationpermissionDetail: param => hccmRequestUtil.getApi("/osce-api/app/recordsstudentexaminationpermission/listDetails", param, true),

  // 历史修改记录 checkExam:1不提示   0提示 recordsStudentId  result
  checkExam: param => hccmRequestUtil.postApi("/osce-api/app/studentExaminationDetail/checkExam", param, true),

  // 最新版本号
  getVersion: param => hccmRequestUtil.postApi("/osce-api/sys/padversion/getNew", param, true),

}
